namespace CSharpPro._0923;

public class Work2
{
    public void Test2()
    {
        //判断闰年
        //被四整除，不被100整除
        //被400整除
        int num = 2020;
        bool flag = (num % 4 == 0 && num % 100 != 0) || num % 400 == 0;
        if (flag==true)
        {
            Console.Write("flag是真，闰年为："+num);
        }
    
    
    }
}